/* This is a simple imitation of env
 * It can only print all the environments, no options provided
 * for more detail, please see 'man environ'
 */
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  extern char **environ;
  for (char **env = environ; *env; env++) {
    printf("%s\n", *env);
  }

  return EXIT_SUCCESS;
}
